package me.zhengjie.modules.management.mapper;

import me.zhengjie.modules.management.domain.MrMaterialDtl;
import me.zhengjie.modules.management.service.dto.MrMaterialDtlCriteria;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;

/**
 * @program: eladmin
 * @description: 材料信息数据访问层
 * @author: ming.cao
 * @create: 2020-12-09 09:25
 **/
@Mapper
public interface MrMaterialDtlMapper {
    /**
     * @title: getAllList
     * @description: 获取所有材料数据
     * @date: 2020/12/9 9:27
     * @author: ming.cao
     * @param
     * @return java.util.List<me.zhengjie.modules.management.domain.MrMaterialDtl>
     * @throws
     */
    List<MrMaterialDtl> getAllList(MrMaterialDtlCriteria criteria);

    /**
     * @title: getListByType
     * @description:
     * @date: 2020/12/17 15:43
     * @author: ming.cao
     * @param type
     * @return java.util.List<me.zhengjie.modules.management.domain.MrMaterialDtl>
     * @throws
     */
    List<MrMaterialDtl> getListByType(Integer type);

    /**
     * @title: getMrMaterialDtl
     * @description: 根据id获取物资信息
     * @date: 2020/12/10 11:22
     * @author: ming.cao
     * @param id
     * @return me.zhengjie.modules.management.domain.MrMaterialDtl
     * @throws
     */
    MrMaterialDtl getMrMaterialDtlById(Integer id);

    /**
     * @title: addMrMaterial
     * @description: 新增材料
     * @date: 2020/12/9 9:28
     * @author: ming.cao
     * @param mrMaterialDtl
     * @return void
     * @throws
     */
    void addMrMaterial(MrMaterialDtl mrMaterialDtl);

    /**
     * @title: updateMrMaterial
     * @description: 更新材料
     * @date: 2020/12/9 9:28
     * @author: ming.cao
     * @param mrMaterialDtl
     * @return void
     * @throws
     */
    void updateMrMaterial(MrMaterialDtl mrMaterialDtl);

    /**
     * @title: delMrMaterial
     * @description: 删除材料
     * @date: 2020/12/9 9:29
     * @author: ming.cao
     * @param id
     * @return void
     * @throws
     */
    void delMrMaterial(Integer id);
}
